<template>
  <div class="hot-man">
    <nav>
      <router-link to="#" v-for="item in 6" :key="item">涨粉榜</router-link>
    </nav>
    <div class="content">
      <div class="one">
        <span>日</span>
        <span>周</span>
        <span>月</span>
        <el-select v-model="value" placeholder="请选择">
          <el-option
            v-for="item in options"
            :key="item.value"
            :label="item.label"
            :value="item.value"
          >
          </el-option>
        </el-select>
        <div class="right">
          <b>榜单生成时间: 2022-09-29 00:00</b>
          <button>导出</button>
        </div>
      </div>
      <div class="two">
        <h3>分类：</h3>
        <div class="list">
          <span>全部</span>
          <span v-for="item in 33" :key="item">网红美女</span>
        </div>
      </div>
      <div class="three">
        <el-table :data="tableData" style="width: 100%">
          <el-table-column prop="date" label="排名" width="120">
          </el-table-column>
          <el-table-column prop="name" label="用户"> </el-table-column>
          <el-table-column prop="date" label="所属行业" width="220">
          </el-table-column>
          <el-table-column prop="date" label="涨粉度" width="220">
          </el-table-column>
          <el-table-column prop="date" label="粉丝数" width="220">
          </el-table-column>
          <el-table-column prop="date" label="操作" width="220">
          </el-table-column>
        </el-table>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      options: [
        {
          value: "选项1",
          label: "黄金糕",
        },
        {
          value: "选项2",
          label: "双皮奶",
        },
        {
          value: "选项3",
          label: "蚵仔煎",
        },
        {
          value: "选项4",
          label: "龙须面",
        },
        {
          value: "选项5",
          label: "北京烤鸭",
        },
      ],
      value: "",
      tableData: [
        {
          date: "2016-05-02",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1518 弄",
        },
        {
          date: "2016-05-04",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1517 弄",
        },
        {
          date: "2016-05-01",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1519 弄",
        },
        {
          date: "2016-05-03",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1516 弄",
        },
      ],
    };
  },
};
</script>

<style lang="less" scoped>
.hot-man {
  nav {
    display: flex;
    margin: 20px 0;
    a {
      padding: 0 20px;
      height: 40px;
      margin-right: 10px;
      background: #ccc;
      text-align: center;
      line-height: 40px;
      border-radius: 5px;
      font-size: 14px;
      color: #fff;
    }
  }
  .content {
    background: #fff;
    font-size: 12px;
    padding: 20px;
    .one {
      display: flex;
      align-items: center;
      margin: 10px 0;
      span {
        border-radius: 5px;
        padding: 0 10px;
        text-align: center;
        background: #ccc;
        height: 24px;
        line-height: 24px;
        margin-right: 10px;
      }
      .right {
        flex: 1;
        text-align: end;
        b {
          color: #ccc;
          margin-right: 10px;
        }
      }
    }
    .two {
      display: flex;
      h3 {
        width: 60px;
      }
      .list {
        display: flex;
        flex-wrap: wrap;
        span {
          padding: 5px 10px;
          border-radius: 5px;
          margin: 5px 5px 5px 0;
          background: #ccc;
        }
      }
    }
    .three {
    }
  }
}
</style>
